package com.fyt.recover.order;

public class SelectOrder {

    public static void test(int[] arr) {
             int min=0;
        for (int i = 0; i < arr.length-1; i++) {
            min=arr[i];
            for (int j = i+1; j <arr.length ; j++) {

                if(min>arr[j]){
                    min=arr[j];
                    int temp;
                    temp=arr[i];
                    arr[i]=arr[j];
                    arr[j]=temp;
                }
            }




        }
        for (int i = 0; i <arr.length ; i++) {
            System.out.println(arr[i]);
        }
    }

   /* public static int[] exchange(int [] arr,int i,int j) {
       int temp;
       temp=arr[i];
       arr[i]=arr[j];
       arr[j]=temp;

       return arr;
    }*/

}
